//
//  Layout.h
//  123123
//
//  Created by 张钧 on 2017/5/3.
//  Copyright © 2017年 JinYun. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef CGFloat(^Block)(NSIndexPath * indexPath,CGFloat width);

@interface Layout : UICollectionViewLayout
@property(nonatomic,assign)CGFloat rowSpacing;  //行间距
@property(nonatomic,assign)CGFloat  lineSpacing;    //列间距
@property(nonatomic,assign)NSInteger num;       //列数
@property(nonatomic,assign)UIEdgeInsets insets;     //边距

//按比例缩放返回高度
-(void)backHeight:(CGFloat(^)(NSIndexPath * indexPath,CGFloat width))block;
@end
